package com.chat.protocol;

import java.util.Map;

public class IMMessage {
	
	private String addr;
	private String cmd;
	private long time;
	private int online;
	private String sender;
	private String receiver;
	private String content;
	private Map<String,String> allSender;
	
	public IMMessage(){}
	
	public IMMessage(String cmd,long time,int online,String content,Map<String,String> allSender){
		this.cmd = cmd;
		this.time = time;
		this.online = online;
		this.content = content;
		this.allSender = allSender;
	}
	
	public IMMessage(String cmd,long time,int online,String content){
		this.cmd = cmd;
		this.time = time;
		this.online = online;
		this.content = content;
	}
	public IMMessage(String cmd,long time,String sender){
		this.cmd = cmd;
		this.time = time;
		this.sender = sender;
	}
	public IMMessage(String cmd,long time,String sender,String content){
		this.cmd = cmd;
		this.time = time;
		this.sender = sender;
		this.content = content;
	}
	
	public IMMessage(String cmd,long time,String sender,String content,String addr){
		this.cmd = cmd;
		this.time = time;
		this.sender = sender;
		this.content = content;
		this.addr = addr;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getCmd() {
		return cmd;
	}

	public void setCmd(String cmd) {
		this.cmd = cmd;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public int getOnline() {
		return online;
	}

	public void setOnline(int online) {
		this.online = online;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Map<String, String> getAllSender() {
		return allSender;
	}

	public void setAllSender(Map<String, String> allSender) {
		this.allSender = allSender;
	};
	
	
}
